]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
theme-node: fix support for box-shadow: none
authorCosimo Cecchi <cosimo@endlessm.com>
Thu, 20 Jun 2013 21:51:33 +0000 (14:51 -0700)
committerCosimo Cecchi <cosimo@endlessm.com>
Tue, 25 Jun 2013 17:11:31 +0000 (10:11 -0700)
We currently don't parse "box-shadow: none", despite being valid CSS.
Fix it so that it uses the default shadow values.

https://bugzilla.gnome.org/show_bug.cgi?id=702782

src/st/st-theme-node.c

index e4eddcfb80cd03dd599e3fd4c3235961a4c806f8..5250e8ac72523f80c88eae1ac832258a161f9119 100644 (file)
@@ -3056,6 +3056,10 @@ parse_shadow_property (StThemeNode       *node,
    */
   for (term = decl->value; term; term = term->next)
     {
+      /* if we found "none", we're all set with the default values */
+      if (term_is_none (term))
+        return VALUE_FOUND;
+
       if (term->type == TERM_NUMBER)
         {
           gdouble value;